import { history } from "@@/exports";
import { iframeFunCallExpose } from "./utils/iframe";


// 说明当前是 iframe
if(window.top !== window) {

    const gotoPage = (path: string) => {
        history.push(path);
    };

    // 跨模块函数调用（通信）演示
    const test22222sum = (a: number, b: number) => a+b+2;

    // 暴露函数
    iframeFunCallExpose({
        gotoPage,
        test22222sum,
    });

}